#ifndef CAPTCHAINPUTDIALOG_H
#define CAPTCHAINPUTDIALOG_H

#include <QDialog>
#include <QAbstractButton>
#include <functional>
#include <QImage>

namespace Ui {
class CaptchaInputDialog;
}

class CaptchaInputDialog : public QDialog
{
    Q_OBJECT

public:
    explicit CaptchaInputDialog(const QImage &image, QWidget *parent = 0);
    ~CaptchaInputDialog();

    QString inputText();
    void setImage(const QImage &image);
private slots:
    void on_buttonBox_clicked(QAbstractButton *button);
public:
    Q_SIGNAL void resetClicked();
private:
    Ui::CaptchaInputDialog *ui;
};

#endif // CAPTCHAINPUTDIALOG_H
